<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>blogreader登录页面</title>
<base href='<?php echo $this->Html->url('/')?>' />
<?php echo $this->Html->css('login');?>
<?php echo $this->Html->script('jquery');?>
<?php echo $this->Html->script('login');?>
<base href='<?php echo $this->Html->url('/')?>' />
</head>
<body>
<?php echo $this->Session->flash(); ?>
	<div id="background">
		<div id="login">
			<?php echo $this->Form->create('User', array('action' => 'login','id'=>"loginForm"));?>
				<div class="formdiv">
					<?php echo $this->Form->input("username",array('label'=>false,'id'=>"username",'class'=>"loginbox"));?>
					<label for="username" class="labelClass">用户名</label>
				</div>
				<div class="formdiv">
					<?php echo $this->Form->input("password",array('label'=>false,'id'=>"password",'class'=>"loginbox"));?>
					<label for="password" class="labelClass">密码</label>
				</div>
				<div id="checkbox_div">
			<?php echo $this->Form->input("checkbox",array('label'=>false,'id'=>"checkbox",'type'=>"checkbox"))?>
			<label for="checkbox" id="remember">记住登录状态</label>
				</div>
				<div id="login_but">
					<input id="loginBut" type="submit" value="登  录"/>
					<br />
					<span id="forget">
						<a href="javascript:void(0)">忘记密码？</a>
					</span>
					<span>|</span>
					<span><a href="javascript:void(0)" class="adRegi">免费注册！</a>
					</span>
				</div>
			</form>
		</div>
		<div id="register">
			<?php echo $this->Form->create('User', array('action' => 'register'));?>
			<table id="loginTable">
				<tr>
					<td><div class="tdHead"><label for="rusername">账号 Username</label></div><?php echo $this->Form->input("username",array('label'=>false,'id'=>"rusername",'class'=>"registerbox"));?></td>
					<td><div class="rtips"></div></td>
				</tr>
				<tr>
					<td><div class="tdHead"><label for="rpassword1">密码 Password</label></div><?php echo $this->Form->input("password",array('label'=>false,'id'=>"rpassword1",'class'=>"registerbox","autocomplete"=>"off"));?></td>
					<td><div class="rtips"></div></td>
				</tr>
				<tr>
					<td><div class="tdHead"><label for="rpassword2">确认密码 Commit</label></div><?php echo $this->Form->input("password",array('label'=>false,'id'=>"rpassword2",'class'=>"registerbox","autocomplete"=>"off"));?></td>
					<td><div class="rtips"></div></td>
				</tr>
				<tr>
					<td><div class="tdHead"><label for="remail">邮箱 E-mail</label></div><?php echo $this->Form->input("email",array('label'=>false,'id'=>"remail",'class'=>"registerbox"));?></td>
					<td><div class="rtips"></div></td>
				</tr>
				<tr>
					<td><div class="tdHead"><label for="rcaptcha">验证码</label></div><?php echo $this->Form->input("captcha",array('label'=>false,'id'=>"rcaptcha",'class'=>"registerbox","autocomplete"=>"off"));?></td>
					<td><img alt='验证码图片' src='users/captcha' style='cursor:pointer; margin-top: 5px;' onclick='javascript:this.src="users/captcha/"+Math.random();'/></td>
				</tr>
				<tr>
					<td style='text-align:center;'><?php echo $this->Form->end("提交注册");?></td>
				</tr>
			</table>
		</div>
		<div id="ad">
		<div id="line">
		</div>
		<img id="logo" src="img/logo.png"/><br/><br/>
		<div id="adLog">
				<h3><span>已有账号？？</span>
				<span><a href="javascript:void(0)">马上登录！！</a></span></h3>
			</div>
			<div class="adRegi" id="adReg">
				<h3><span>还没有账号？？</span>
				<span><a href="javascript:void(0)">立刻注册！！</a></span></h3>
			</div>
			<img src="img/login.gif" id="logingif"/>
		</div>
	</div>
			<div id="bottomImf">
			<span><a href="">关于我们</a></span>
			<span>|<span>
			<span><a href="">服务条款</a></span>
			<br /><span>邮箱:</span>
		</div>
</body>
</html>
